package com.ellecity06.cwhiskymall.ui.address.add

import com.ellecity06.common.base.view.IUiIntent
import com.github.gzuliyujiang.wheelpicker.entity.CityEntity
import com.github.gzuliyujiang.wheelpicker.entity.CountyEntity
import com.github.gzuliyujiang.wheelpicker.entity.ProvinceEntity

/**
 * @author ellecity06
 * @time 2024/10/31 13:48
 * @des
 */
sealed class AddressAddIntent : IUiIntent {

    data class ChooseCity(
        val province: ProvinceEntity,
        val city: CityEntity,
        val county: CountyEntity
    ) : AddressAddIntent()

    /**
     * 添加地址
     */
    data class AddAddress(
        val id: Int,
        val name: String,
        val phone: String,
        val city: String,
        val address: String,
        val default: Boolean
    ) : AddressAddIntent()

    /**
     * 编辑地址
     */
    data class EditAddress(
        val name: String,
        val phone: String,
        val city: String,
        val address: String,
        val default: Boolean
    ) : AddressAddIntent()

    /**
     * 获取修改的地址信息
     */
    data class FetchAddress(val id: Int) : AddressAddIntent()

}